package com.ns.sbs.oauth.rent.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ns.sbs.oauth.rent.entry.RentPermissionEntry;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 租户权限数据层接口
 *
 * @author liaowei
 */
@Mapper
public interface RentPermissionMapper extends BaseMapper<RentPermissionEntry> {

    /**
     * 根据租户id查询租户权限
     *
     * @param rid 租户id
     * @return RentPermissionEntry
     */
    List<RentPermissionEntry> selectByRid(@Param("rid") Long rid);

    /**
     * 删除租户现有权限
     *
     * @param rid 租户id
     */
    void delByRid(@Param("rid") Long rid);
}
